/*
package cn.zengdeai.langchain4j_springboot.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class RequestTimeAspect {

    private static final Logger logger = LoggerFactory.getLogger(RequestTimeAspect.class);

    @Around("execution(* cn.zengdeai.langchain4j_springboot.controller..*.*(..))")
    public Object logExecutionTime(ProceedingJoinPoint joinPoint) throws Throwable {
        long start = System.currentTimeMillis();

        Object result = joinPoint.proceed(); // 执行目标方法

        long executionTime = System.currentTimeMillis() - start;

        logger.info("方法 {} 执行耗时: {} 毫秒", joinPoint.getSignature(), executionTime);
        return result;
    }
}
*/
